package org.ytor.core.scheduler.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.ytor.common.util.Dates;

import java.util.Date;
import java.util.Map;

/**
 * created by yangtong on 2025/5/21 21:34:53
 */
@Slf4j
@Component
public class TestTask extends ParameterTask {
    @Override
    public void doTask(Map<String, Object> parameters) throws Throwable {
        addLog("这是定时任务的测试日志1");
        log.info("{}:{}", parameters, Dates.format(new Date(), "yyyy-MM-dd HH:mm:ss.SSS"));
        addLog("这是定时任务的测试日志2");
    }
}
